import os


class ConfigManager(object):
    # 项目目录
    BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    # 测试报告目录
    REPORT_FILE = os.path.join(BASE_DIR, 'reports/allure_html/index.html')

    # 邮件信息
    EMAIL_INFO = {
        'username': '1939458178@qq.com',  # 发件人地址
        'password': 'ogysiffbxezbbgff',
        'smtp_host': 'smtp.qq.com',
        'smtp_port': 465
    }
    # 收件人
    ADDRESSEE = [
        '1939458178@qq.com',
    ]




    # 测试网站
    UFM = "http://10.0.11.99:8010/"
    username = 'admin'
    password = 'admin'

    # 公共任务
    task_name = "oct_big"
    task_name_2 = "Medical_test"
    task_name_3 = "big_fenpian"

    #文件导出路径，这个跑自动化测试时需要更改路径
    export_path = r'C:\Users\Administrator\Desktop'



    # 远程文件系统_s3
    name = 'test1'
    adress = '10.0.11.101:9004'
    s3_name = 'admin'
    s3_password = 'adminadmin'
    test_success = '测试成功！'
    save_success = '保存成功！'
    detele_success = '删除成功！'

    #远程文件系统_local
    local_name = '自动化'
    Drive_letter_name_1 = 'test1'
    Drive_letter_name_2 = 'test2'
    Drive_letter_name_3 = 'test3'
    Drive_letter_name_4 = 'test4'
    Drive_letter_name_5 = 'test5'

    Drive_letter_path_1 = r'C:\Users\Administrator\Desktop\test1'
    Drive_letter_path_2 = r'C:\Users\Administrator\Desktop\test2'
    Drive_letter_path_3 = r'C:\Users\Administrator\Desktop\test3'
    Drive_letter_path_4 = r'C:\Users\Administrator\Desktop\test4'
    Drive_letter_path_5 = r'C:\Users\Administrator\Desktop\test5'

    #远程数据源
    data_name = 'auto_testdata'
    host = '10.0.11.99'
    port = '8306'
    data_username = 'root'
    data_password = 'Ak1010fbi!'
    max_connect = '50'


    #单节点部署
    ip = '10.0.11.33'
    #节点区间部署
    ip_left = '10.0.11.33'
    ip_right = '10.0.11.35'
    yes = 'yes'
